﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AgileShare.Framework.SiteProvisioning.Definitions
{
	public class ListInstanceDefinitionCollection : List<ListInstanceDefinition>
	{
		/// <summary>
		/// Gets the titles.
		/// </summary>
		/// <value>
		/// The titles.
		/// </value>
		public string[] Titles
		{
			get
			{
				return this.Select(x => x.Title).ToArray();
			}
		}

		/// <summary>
		/// Gets the relative urls.
		/// </summary>
		/// <value>
		/// The relative urls.
		/// </value>
		public string[] RelativeUrls
		{
			get
			{
				return this.Select(x => x.RelativeUrl).ToArray();
			}
		}
	}
}
